﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchDevice.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.BatchDevice" %>

<%@ Register src="../../Controls/DwzAssessment.ascx" tagname="DwzAssessment" tagprefix="uc" %>
<%@ Register src="../../Controls/DwzAssessmentList.ascx" tagname="DwzAssessmentList" tagprefix="uc" %>
<%@ Register src="uc_change_field.ascx" tagname="uc_change_field" tagprefix="uc" %>
<%@ Register src="uc_head.ascx" tagname="uc_head" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<head id="Head1" runat="server">
    <title>批量变更设备数据</title>
    <link href="<%=Page.ResolveUrl("~/Resource/Css/Style.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/jBox/Blue/jbox.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/LigerUI/skins/Aqua/css/ligerui-all.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/LigerUI/skins/Gray2014/css/all.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/LigerUI/LigeruiExtend.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=Page.ResolveUrl("~/Resource/dwz/js/jquery-1.7.2.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Common.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-2.3.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-zh-CN.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/LigerUI/js/ligerui.all.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/My97DatePicker/WdatePicker.js")%>" type="text/javascript"></script>
    <!--[if lt IE 8 ]><script src="~/Resource/Js/json2.min.js" type="text/javascript"></script><![endif]-->
    <style type="text/css">
		#dialog-form { font-size: 62.5%; }
		#dialog-form label { width:120px; display:inline-block; font-weight:700; text-align:right; }
		#dialog-form input.text { margin-bottom:12px; width:180px; padding: .4em; }
		#dialog-form fieldset { padding:0; border:0; margin-top:15px; }
        #dialog-form fieldset ul li { display:inline-block; width:330px; float:left; height:40px; line-height:40px; }
        .formTable input { padding: 2px; }
        .l-grid-row-cell-inner .updated { display:inline-block;color:#ff0000;width:100%; }
        .required { color: red; }
        .seachStore { display: inline-block; margin-top: 10px; height: 25px; line-height: 25px; }
	</style>
    <script type="text/javascript">
        var update_logs = <%=update_logs%>;
        var storegrid;
        var isDblClickRow = true;
        $(function () {
            storegrid = $("#storegrid").ligerGrid({
                columns: [
                    {
                        display: '操作', id: 'remove', isSort: false, width: 50, frozen: true, render: function (rowdata, rowindex, value) {
                            return "<a href='javascript:deleteRow(" + rowindex + ","+rowdata.DeviceID+")'>移除</a> ";
                        }
                    }, {
                        display: '授权号', name: 'AuthID', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'AuthID');
                        }
                    }, {
                        display: '发放方式', name: 'DeliveryType', width: 80,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DeliveryType');
                        }
                    }, {
                        display: '设备状态', name: 'Status', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'Status');
                        }
                    }, {
                        display: '固定资产号', name: 'FullSetSN', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'FullSetSN');
                        }
                    }, {
                        display: '美萍号', name: 'MeiPinNo', width: 220,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'MeiPinNo');
                        }
                    }, {
                        display: '设备是否转固', name: 'IsTurnSolid', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'IsTurnSolid');
                        }
                    }, {
                        display: '机器初购年份', name: 'PurchasedDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PurchasedDate');
                        }
                    }, {
                        display: '安装时间', name: 'InstallDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'InstallDate');
                        }
                    }, {
                        display: '调色机机器初购年份', name: 'DispenserPurchasedDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DispenserPurchasedDate');
                        }
                    },{
                        display: '调色机安装时间', name: 'DispenserSetupDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DispenserSetupDate');
                        }
                    }, {
                        display: '调色机型号', name: 'DispenserModel', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DispenserModel');
                        }
                    }, {
                        display: '调色机固定资产号', name: 'DispenserFixedAsset', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DispenserFixedAsset');
                        }
                    }, {
                        display: '调色机序列号', name: 'DispenserSN', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'DispenserSN');
                        }
                    }, {
                        display: '震荡机机器初购年份', name: 'ShakerPurchasedDate', width: 200, align: 'left',
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'ShakerPurchasedDate');
                        }
                    }, {
                        display: '震荡机安装时间', name: 'ShakerSetupDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'ShakerSetupDate');
                        }
                    }, {
                        display: '震荡机型号', name: 'ShakerModel', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'ShakerModel');
                        }
                    }, {
                        display: '震荡机固定资产号', name: 'ShakerFixedAsset', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'ShakerFixedAsset');
                        }
                    }, {
                        display: '震荡机序列号', name: 'ShakerSN', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'ShakerSN');
                        }
                    }, {
                        display: '电脑初购年份', name: 'PcPurchasedDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PcPurchasedDate');
                        }
                    }, {
                        display: '电脑安装时间', name: 'PcSetupDate', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PcSetupDate');
                        }
                    }, {
                        display: '电脑型号', name: 'PcModel', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PcModel');
                        }
                    }, {
                        display: '电脑固定资产号', name: 'PcFixedAsset', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PcFixedAsset');
                        }
                    }, {
                        display: '电脑序列号', name: 'PcSN', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'PcSN');
                        }
                    }, {
                        display: '设备地址', name: 'Address', width: 100,
                        render: function (rowdata, rowindex, value) {
                            return InitCell(rowdata, rowindex, value, 'Address');
                        }
                    }],
                width: '100%', height: '70%', usePager: false,
                // 设置数据源
                dataAction: 'server', rownumbers: true, data: { Rows: <%=stores_json%> },
                onAfterShowData: function(currentData) {
                    setTimeout(function() {
                        $("span[tooltip='true']").qtip({
                            position: {
                                target: 'mouse',
                                adjust: { x: 10, y: 10 }
                            }
                        });
                    }, 500);
                },
                onDblClickRow: function (data, rowindex, rowobj) {
                    if(isDblClickRow) {
                        openEditDialog();

                        $.jBox.getBox().find("[name='Status']").val(data.Status);
                        $.jBox.getBox().find("#l_FullSetSN").html(data.FullSetSN);
                        $.jBox.getBox().find("[name='FullSetSN']").val(data.FullSetSN);
                        $.jBox.getBox().find("#l_MeiPinNo").html(data.MeiPinNo);
                        $.jBox.getBox().find("[name='MeiPinNo']").val(data.MeiPinNo);
                        $.jBox.getBox().find("[name='PurchasedDate']").val(data.PurchasedDate);
                        $.jBox.getBox().find("[name='InstallDate']").val(data.InstallDate);
                        if(data.IsTurnSolid == true || data.IsTurnSolid=="True"){
                            $.jBox.getBox().find(":radio[name='IsTurnSolid']:eq(0)").attr("checked","checked");
                            $.jBox.getBox().find(":radio[name='IsTurnSolid']:eq(1)").removeAttr("checked");
                        }

                        $.jBox.getBox().find("[name='DeviceID']").val(data.DeviceID);
                        $.jBox.getBox().find("[name='StoreID']").val(data.StoreID);
                        $.jBox.getBox().find("[name='AuthID']").val(data.AuthID);
                        $.jBox.getBox().find("[name='DeliveryType']").val(data.DeliveryType);
                        $.jBox.getBox().find("[name='DispenserPurchasedDate']").val(data.DispenserPurchasedDate);
                        $.jBox.getBox().find("[name='DispenserSetupDate']").val(data.DispenserSetupDate);
                        $.jBox.getBox().find("[name='DispenserModel']").val(data.DispenserModel);

                        $.jBox.getBox().find("[name='DispenserFixedAsset']").val(data.DispenserFixedAsset);
                        $.jBox.getBox().find("[name='DispenserSN']").val(data.DispenserSN);
                        $.jBox.getBox().find("[name='ShakerPurchasedDate']").val(data.ShakerPurchasedDate);

                        $.jBox.getBox().find("[name='ShakerSetupDate']").val(data.ShakerSetupDate);
                        $.jBox.getBox().find("[name='ShakerModel']").val(data.ShakerModel);
                        $.jBox.getBox().find("[name='ShakerFixedAsset']").val(data.ShakerFixedAsset);
                        $.jBox.getBox().find("[name='ShakerSN']").val(data.ShakerSN);
                        $.jBox.getBox().find("[name='PcPurchasedDate']").val(data.PcPurchasedDate);
                        $.jBox.getBox().find("[name='PcSetupDate']").val(data.PcSetupDate);
                        $.jBox.getBox().find("[name='PcModel']").val(data.PcModel);
                        $.jBox.getBox().find("[name='PcFixedAsset']").val(data.PcFixedAsset);
                        $.jBox.getBox().find("[name='PcSN']").val(data.PcSN);
                        $.jBox.getBox().find("[name='Address']").val(data.Address);
                        initProvince($.jBox.getBox().find("#Region"),
                            // 初始化省份、城市
                            function () {
                                $.jBox.getBox().find("select[name='Province']").val(data.Province);
                                initProvince($.jBox.getBox().find("#Province"),
                                    function () {
                                        $.jBox.getBox().find("select[name='CityName']").val(data.CityName)
                                    });
                            });

                        // todo:表单默认选中已修改的值
                        var names = new Array("StoreID","AuthID","StoreName","StoreAddress","ContactPerson","PhoneNumber","StoreStatus","Region","Province","CityName");
                        for (var l in update_logs) {
                            if (update_logs[l].DataID == data.StoreID) {
                                for(var i in names) {
                                    var name = names[i];
                                    if(name == update_logs[l].FieldName) {
                                        $.jBox.getBox().find("[name='" + name + "']").val(update_logs[l].AfterValue);
                                    }
                                }
                            }
                        }

                    }
                }
            });

            /* 初始化单元格 st */
            function InitCell(rowdata, rowindex, value, name) {
                var h = value;
                for (var l in update_logs) {
                    if (update_logs[l].DataID == rowdata.DeviceID && update_logs[l].FieldName == name) {
                        var id = rowdata.__id + rowdata.__index;

                        var title = "<b>修改前：</b><br />" + update_logs[l].BeforeValue;
                        title += "<br /><b>修改后:</b><br />" + update_logs[l].AfterValue;

                        h = "<span id='" + id + "' tooltip='true' class='updated' title='" + title + "'>" + 
                             update_logs[l].AfterValue + "</span>";
                    }
                }
                return h;
            }

            /* 初始化tip ed */

            
            var step = "<%=TaskAPI.Step%>";
            var readonly = "<%=H2.NET.Common.AksRequest.GetString("readonly")%>";
            if(step == "DMO Commit" || readonly == "1") {
                isDblClickRow = false;
                storegrid.toggleCol('remove', false);
            }
        });

        /* 打开选择门店窗体 st */
        function openEditDialog() {
        
            $.jBox("id:dialog-form", {
                title: "选取设备",
                width: 950,
                height: 358,
                buttons: {'确认修改': 1, '取消修改': 0},
                submit: function (v, h, f) {
                    if (v == 0) {
                        return true;
                    }
                    else {
                        // todo:数据验证
                        
                        // 更新grid数据
                        var $form = $('<form></form>');
                        $form.append($.jBox.getBox().find(".jbox-container .formTable").clone());
                        var jsonStr = formatJson($form.serializeArray());
                        storegrid.updateRow(storegrid.getSelected(), jQuery.parseJSON(jsonStr));

                        // 提交并保存变更的数据
                        $.ajax({
                            type: 'POST',
                            url: '<%= Page.ResolveUrl("~/Pages/SMD/ajaxtools/handler.ashx?action=save_changed_device")%>',
                            data: { data: JSON.stringify(storegrid.getSelected()) },
                            dataType: "json",
                            success: function (json) {
                                update_logs = json;
                                storegrid.reload();
                            },
                            error: function (error) {
                                $.jBox.tip(result, 'error');
                            }
                        });
                    }
                    return true;
                }
            });
        }
        /* 打开选择门店窗体 ed */

        /* 格式化json st */
        function formatJson(jsonObj) {
            var jsonStr = "{";
            $.each(jsonObj, function (i, field) {
                var s = i == 0 ? "\"" : ", \"";
                jsonStr += s + field.name + '":"' + field.value + '" ';
            });
            jsonStr += "}"
            return jsonStr;
        }
        /* 格式化json st */

        /* 提交表单 st */
        function confirmSubmit() {
            if (window.confirm("确认要提交吗？")) {
                $.jBox.tip('正在处理，请稍等...', 'loading');
                return true;
            }
            return false;
        }
        /* 提交表单 ed */

        /* 省份、城市 st */
        function initProvince(arg, callback) {
            var val = $(arg).val();
            var id = $(arg).attr("id");
            if ($.trim(val)) {
                $.ajax({
                    type: 'POST',
                    url: '<%=Page.ResolveUrl("~/pages/smd/store.aspx?action=initProvince")%>',
                    data: { ar: val },
                    dataType: "json",
                    cache: false,
                    success: function (json) {
                        var rst = json.navTabId.split("|");
                        var html = "";
                        for (var i = 0; i < rst.length; i++) {
                            if (rst[i]) {
                                var list = rst[i].split(",");
                                html += "<option value='" + list[0] + "'>" + list[1] + "</option>";
                            }
                        }
                        if (id == "Province") {
                            $("#CityName").find("option:gt(0)").remove().end().append(html);
                        }
                        else {
                            $("#Province").find("option:gt(0)").remove().end().append(html);
                            $("#CityName").find("option:gt(0)").remove();
                        }

                        if (jQuery.isFunction(callback)) {
                            callback();
                        }
                    }
                });
            }
            else {
                if (id == "Province") {
                    $("#CityName").find("option:gt(0)").remove();
                }
                else {
                    $("#Province").find("option:gt(0)").remove();
                    $("#CityName").find("option:gt(0)").remove();
                }
            }
        }
        /* 省份、城市 ed */

        /* 删除行 st */
        function deleteRow(rowid,drviceID) {
            if (confirm('确定移除?')) {
                $.ajax({
                    type: 'POST',
                    url: '<%= Page.ResolveUrl("~/Pages/SMD/ajaxtools/handler.ashx?action=delete_changed_device")%>',
                    data: { id: drviceID },
                    success: function (result) {
                        storegrid.deleteRow(rowid);
                    },
                    error: function (result) {
                        $.jBox.tip(result, 'error');
                    }
                });
            }
        }
        /* 删除行 ed */

        /* 选择变更的数据 st */
        function selectData() {
            var deviceIds = [];
            var devicejson = storegrid.getData();
            for(var o in devicejson) {
                deviceIds.push(devicejson[o].DeviceID);
            }

            var fn = $.ligerui.getPopupFn({
                condition:{
                    fields: [{ name: 'keyword',labelWidth:240,label: '固定资产号/门店授权号/设备地址/美萍号',type:"text",op:'like', title:'请输入关键字'}] 
                },
                top : 80,
                onSelect: function (e) {
                    storegrid.addRows(e.data);
                },
                grid: {
                    columns: [{
                    display: '固定资产号', name: 'FullSetSN', width: 100 }, {
                    display: '授权号', name: 'AuthID', width: 100 }, {
                    display: '发放方式', name: 'DeliveryType', width: 80 }, {
                    display: '美萍号', name: 'MeiPinNo', width: 220 }, {
                    display: '调色机机器初购年份', name: 'DispenserPurchasedDate', width: 100 }, {
                    display: '调色机安装时间', name: 'DispenserSetupDate', width: 100 }, {
                    display: '调色机型号', name: 'DispenserModel', width: 100 }, {
                    display: '调色机固定资产号', name: 'DispenserFixedAsset', width: 100 }, {
                    display: '调色机序列号', name: 'DispenserSN', width: 100 }, {
                    display: '震荡机机器初购年份', name: 'ShakerPurchasedDate', width: 200, align: 'left' }, {
                    display: '震荡机安装时间', name: 'ShakerSetupDate', width: 100 }, {
                    display: '震荡机型号', name: 'ShakerModel', width: 100 }, {
                    display: '震荡机固定资产号', name: 'ShakerFixedAsset', width: 100 }, {
                    display: '震荡机序列号', name: 'ShakerSN', width: 100 }, {
                    display: '电脑初购年份', name: 'PcPurchasedDate', width: 100 }, {
                    display: '电脑安装时间', name: 'PcSetupDate', width: 100 }, {
                    display: '电脑型号', name: 'PcModel', width: 100 }, {
                    display: '电脑固定资产号', name: 'PcFixedAsset', width: 100 }, {
                    display: '电脑序列号', name: 'PcSN', width: 100 }, {
                    display: '设备地址', name: 'Address', width: 200 }],
                    width: '100%', height: '70%', rownumbers: true,checkbox:true,dataAction: 'server',
                    url: "AjaxTools/Handler.ashx?action=get_smd_device&taskid=<%=TaskAPI.TaskID%>&devices="+deviceIds.join(",")
                }
            });
            fn();
        }
        $(function(){
            $("label[for]").css("width","auto");
        });
    </script>
</head>
<body>
    <div class="flowpage">
    <form id="form1" runat="server">
        <!-- 标题 st -->
        <uc1:uc_head ID="uc_head1" runat="server" />
        <!-- 标题 ed -->
        
        <!-- 表单内容 st -->
        <div>
            <a href="javascript:;" onclick="selectData()" id="lb_selectData" runat="server" class="seachStore u-btn">选取设备</a>
        </div>
        <div style="margin: 10px 0;">
            <div id="storegrid" style="margin-bottom:5px;"></div>
            <table class="formTable">
                <!-- 审批列表 st -->
                <tbody id="assessment" runat="server" visible="false">
                    <tr>
                        <td class="title" colspan="6">审批列表</td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <uc:DwzAssessmentList ID="DwzAssessmentList1" runat="server" />
                        </td>
                    </tr>
                </tbody>
                <!-- 审批列表 ed -->
                <!-- 字段变更列表 st -->
                <tbody id="changelogs" runat="server" visible="false">
                    <tr>
                        <th>字段变更列表：</th>
                        <td colspan="5"><uc:uc_change_field ID="uc_change_field1" runat="server" /></td>
                    </tr>
                </tbody>
                <!-- 字段变更列表 ed -->
                <!-- 审批意见 st -->
                <tbody>
                    <uc:DwzAssessment ID="DwzAssessment1" runat="server" />
                </tbody>
                <!-- 审批意见 ed -->
            </table>
            <%  if(H2.NET.Common.AksRequest.GetString("showbtn") != "0")
                { %>
                <div style="margin: 5px; padding-bottom: 10px; text-align: center;">
                    <asp:Button ID="btn_submit" runat="server" CssClass="u-btn" Text="提交(Submit)" OnClick="btn_submit_Click" OnClientClick="return confirmSubmit();" />
                    <input type="button" class="u-btn u-btn-c4" value="关闭(Close)" onclick="custom_close()" />
                    <asp:HyperLink ID="hl_ExportPdf" runat="server" Visible="false" Target="_blank" CssClass="u-btn u-btn-c3" style="height:28px; line-height:28px; display:inline-block;">生成(PDF)</asp:HyperLink>
                    <asp:Button ID="btn_print" runat="server" CssClass="u-btn u-btn-c2" Text="打印(Print)" OnClientClick="window.print()" Visible="false" />
                </div>
            <%  } %>
        </div>
        <!-- 表单内容 ed -->

        <!-- 修改页面 st -->
        <div id="dialog-form" title="设备信息修改" style="display:none;">
            <table class="formTable">
                <tr>
                    <th>门店授权号：</th>
                    <td>
                        <asp:HiddenField ID="DeviceID" runat="server" />
                        <asp:HiddenField ID="StoreID" runat="server" />
                        <asp:TextBox ID="AuthID" runat="server" ReadOnly="true"></asp:TextBox>
                    </td>
                    <th>设备状态：</th>
                    <td>
                        <asp:DropDownList ID="Status" runat="server" >
                            <asp:ListItem value="">==请选择==</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <th>固定资产号：</th>
                    <td>
                        <asp:Label ID="l_FullSetSN" runat="server" ReadOnly="true"></asp:Label>
                        <asp:HiddenField ID="FullSetSN" runat="server" />
                    </td>
                </tr>
                <tr>
                    <th>美萍号：</th>
                    <td>
                        <asp:Label ID="l_MeiPinNo" runat="server"></asp:Label>
                        <asp:HiddenField ID="MeiPinNo" runat="server" />
                    </td>
                    <th>设备是否转固：</th>
                    <td>
                        <asp:RadioButton GroupName="IsTurnSolid" id="IsTurnSolid1" Enabled="false" runat="server" Text="是" value="True"/>
                        <asp:RadioButton GroupName="IsTurnSolid" id="IsTurnSolid2" Enabled="false" runat="server" Checked="true"  Text="否" value="False"/>
                    </td>
                    <th>发放方式：</th>
                    <td><asp:DropDownList ID="DeliveryType" runat="server" Enabled="false" datatype="*" nullmsg="请选择发放方式"></asp:DropDownList></td>
                </tr>
                <tr>
                    <th>机器初购年份：</th>
                    <td>
                        <asp:TextBox ID="PurchasedDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy',maxDate:'%y'})"></asp:TextBox>
                    </td>
                    <th>安装时间：</th>
                    <td colspan="3"><asp:TextBox ID="InstallDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>调色机机器初购年份：</th>
                    <td><asp:TextBox ID="DispenserPurchasedDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                    <th>调色机安装时间：</th>
                    <td><asp:TextBox ID="DispenserSetupDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                    <th>调色机型号：</th>
                    <td><asp:DropDownList ID="DispenserModel" runat="server" Enabled="false"  datatype="*" nullmsg="请选择调色机型号"></asp:DropDownList></td>
                </tr>
                <tr>
                    <th>调色机固定资产号：</th>
                    <td><asp:TextBox ID="DispenserFixedAsset" Enabled="false" runat="server"></asp:TextBox></td>
                    <th>调色机序列号：</th>
                    <td colspan="3"><asp:TextBox ID="DispenserSN" Enabled="false" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>震荡机机器初购年份：</th>
                    <td><asp:TextBox ID="ShakerPurchasedDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                    <th>震荡机安装时间：</th>
                    <td><asp:TextBox ID="ShakerSetupDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})" ></asp:TextBox></td>
                    <th>震荡机型号：</th>
                    <td><asp:DropDownList ID="ShakerModel" runat="server" Enabled="false" datatype="*" nullmsg="请选择震荡机型号"></asp:DropDownList></td>
                </tr>
                <tr>
                    <th>震荡机固定资产号：</th>
                    <td><asp:TextBox ID="ShakerFixedAsset" Enabled="false" runat="server"></asp:TextBox></td>
                    <th>震荡机序列号：</th>
                    <td colspan="3"><asp:TextBox ID="ShakerSN" Enabled="false" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>电脑初购年份：</th>
                    <td><asp:TextBox ID="PcPurchasedDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                    <th>电脑安装时间：</th>
                    <td><asp:TextBox ID="PcSetupDate" runat="server" Enabled="false" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})"></asp:TextBox></td>
                    <th>电脑型号：</th>
                    <td><asp:DropDownList ID="PcModel" runat="server" Enabled="false" datatype="*" nullmsg="请选择电脑型号"></asp:DropDownList></td>
                </tr>
                <tr>
                    <th>电脑固定资产号：</th>
                    <td><asp:TextBox ID="PcFixedAsset" Enabled="false" runat="server"></asp:TextBox></td>
                    <th>电脑序列号：</th>
                    <td colspan="3"><asp:TextBox ID="PcSN" Enabled="false" runat="server"></asp:TextBox></td>
                </tr>
                 <tr>
                    <th>设备地址：</th> 
                        <td colspan="5">
                        <asp:TextBox ID="Address" runat="server" style="width:80%"></asp:TextBox>
                        <asp:Label ID="l_Address" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <!-- 修改页面 ed -->
        
    </form>
    </div>
</body>
</html>

